<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title>系统登录</title>
<style type="text/css">
input {font-family:Verdana, Arial, Helvetica, sans-serif,"宋体,vertical-align:middle"}
</style>

	</head>

	<body>
		<%if ("1".equals(request.getParameter("error"))) {%>
		<span style="color: red"> 用户名密码错误,请重试.</span>
		<%}
			if ("2".equals(request.getParameter("error"))) {%>
		<span style="color: red"> 验证码错误,请重试.</span>
		<%
			}
			if ("3".equals(request.getParameter("error"))) {
		%>
		<span style="color: red"> 此帐号已从别处登录.</span>
		<%
			}
		%>
		<form name='f' action='/security/j_spring_security_check'
			method='POST'>
			<table>
				<tr>
					<td>
						账号:
					</td>
					<td>
						<input type='text'  name='j_username' value=''>
						
					</td>
					<td></td>
				</tr>
				<tr>
					<td>
						密码:
					</td>
					<td>
						<input type='password'  name='j_password' />
					</td>
				</tr>
				
				<tr>
					<td>
						验证码:
					</td>
					<td>
						<input type='text' name='j_captcha' size='5' />
						<img align="absmiddle"  id="ims" src="/security/security/jcaptcha.jpg" />
						<a href="javascript:refreshCaptcha()">看不清楚换一张</a>
					</td>
				</tr>
				<tr>
					<td colspan='2' align="right">
						<input name="submit" type="submit" value="登录" />&nbsp;&nbsp;
						<input name="reset" type="reset" value="重置" />
					</td>
				</tr>
			</table>
		</form>
		<script type="text/javascript">

		function refreshCaptcha(){
		        document.getElementById("ims").src="/security/security/jcaptcha.jpg?"+Math.random();
				//$('#captchaImg').html('<img src="/security/security/jcaptcha.jpg?'+Math.round(Math.random()*100000)+'"/>');
		}
</script>
	</body>
</html>
